/**
 * @(#) PertNode.java
 */

package karabut.hw3;

import java.util.ArrayList;
import java.util.List;

public class PertNode {
	private String task;

	private int duration;
	
	protected boolean isCritical;
	
	protected int totalDuration;

	protected List<PertNode> predcessors;
	
	protected PertNode(String task, int duration) {
		this.task = task;
		this.duration = duration;
		predcessors = new ArrayList<PertNode>();
	}

	public int getTotalDuration() {
		return totalDuration;
	}

	public boolean isOnCriticalPath() {
		return isCritical;
	}

	public String getTask() {
		return task;
	}

	public int getDuration() {
		return duration;
	}
	
	public List<PertNode> getPredcessors() {
		return predcessors;
	}
}
